package com.telchina.rcbg.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.telchina.rcbg.domain.ProclamationInfo;

/**
 * @Auther: zlm
 * @Date: 2023/3/27
 * @Description: com.telchina.rcbg.service
 * @Version: 1.0
 */
public interface IProclamationInfoService extends IService<ProclamationInfo> {

    /**
     * 根据登录人保存
     *
     * @param info
     * @return
     */
    boolean saveWithLoginUser(ProclamationInfo info);

    boolean modifyById(ProclamationInfo info);

    /**
     * 分页查询
     *
     * @param pageNum    页码
     * @param pageSize   每页条数
     * @param queryParam 查询条件
     * @return
     */
    IPage<ProclamationInfo> pageList(Integer pageNum, Integer pageSize, ProclamationInfo queryParam);

    /**
     * 获取详情，包含附件
     *
     * @param id 主键
     * @return
     */
    ProclamationInfo getByIdWithAttachment(String id);

    /**
     * 删除公告和附件
     *
     * @param id 主键
     * @return
     */
    boolean removeByIdWithAttachment(String id);
}
